﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
using Xyz.Core.Data.Entity;

namespace Xyz.Core.Data.Configurations
{
   public class TypeserverConfiguration : IEntityTypeConfiguration<Typeserver>
    {
        public void Configure(EntityTypeBuilder<Typeserver> builder)
        {
            builder.HasKey(e => e.Id);
            builder.Property(x => x.Types).HasMaxLength(50);
            //指定对应的数据表名
            builder.ToTable("Typeserver");
        }
    }
}
